<div class="block">

    <div class="block_head">
        <div class="bheadl"></div>
        <div class="bheadr"></div>

        <h2><?php echo $title_form; ?></h2>
        <ul>
            <li><a href="cms/girl/">Trở về trang trước</a></li>
        </ul>

    </div>		<!-- .block_head ends -->



    <div class="block_content">
        <?php echo isset($alert)?'<div class="message info"><p>'.$alert.'</p></div>':''; ?>
        <form action="" method="post" enctype="multipart/form-data">
            <input type="hidden" value="<?php echo $gid ?>" name="gid" />
            <input type="hidden" value="<?php echo $image1 ?>" name="image1" />
			<input type="hidden" value="<?php echo $image2 ?>" name="image2" />
			<input type="hidden" value="<?php echo $image3 ?>" name="image3" />
			<input type="hidden" value="<?php echo $image4 ?>" name="image4" />
			<input type="hidden" value="<?php echo $image5 ?>" name="image5" />
             <p>
                <label>Tên</label><br />
                <input type="text" name="name" value="<?php echo $name; ?>" class="text small" />
            </p>
			<p>
                <label>Ngày sinh</label><br />
				  <input type="date" name="birthday"  value="<?php echo $birthday; ?>" class="text small"  min="1950-01-02"><br>
            </p>
			<p>
                <label>Sở thích</label><br />
                <input type="text" name="interests" value="<?php echo $interests; ?>" class="text small" />
            </p>
			<p>
                <label>Năng khiếu</label><br />
                <input type="text" name="talent" value="<?php echo $talent; ?>" class="text small" />
            </p>
            <p>
                <label>Ảnh 1:</label><br />
                <?php echo form_upload(array('name' => 'image1', 'id' => 'image1', 'value' => '')); ?>
                <br/>
                <?php
				if($image1 != ""){
				?>
				<img src="uploads/girl/<?php echo $image1; ?>" width="100" height="100" />
                <?php
                }
                ?>
            </p>
			<p>
                <label>Ảnh 2:</label><br />
                <?php echo form_upload(array('name' => 'image2', 'id' => 'image2', 'value' => '')); ?>
                <br/>
				<?php
					if($image2 != ""){
				?>
				<img src="uploads/girl/<?php echo $image2; ?>" width="100" height="100" />
				<?php
				}
				?>
            </p>
			
			<p>
                <label>Ảnh 3:</label><br />
                <?php echo form_upload(array('name' => 'image3', 'id' => 'image3', 'value' => '')); ?>
                <br/>
				<?php
				if($image3 != ""){
				?>
				<img src="uploads/girl/<?php echo $image3; ?>" width="100" height="100" />
				<?php
				}
				?>
            </p>
			
			<p>
                <label>Ảnh 4:</label><br />
                <?php echo form_upload(array('name' => 'image4', 'id' => 'image4', 'value' => '')); ?>
                <br/>
				<?php
					if($image4 != ""){
				?>
				<img src="uploads/girl/<?php echo $image4; ?>" width="100" height="100" />
				<?php
				}
?>
            </p>
			
			
			<p>
                <label>Ảnh 5:</label><br />
                <?php echo form_upload(array('name' => 'image5', 'id' => 'image5', 'value' => '')); ?>
                <br/>
				<?php
					if($image5 != ""){
				?>
				<img src="uploads/girl/<?php echo $image5; ?>" width="100" height="100" />
				<?php
				}
				?>
            </p>

            <p>
                <label>Trạng thái:</label><br />
                <?php $status_value = array('0' => 'Ẩn', '1' => 'Hiện'); ?>
                <?php foreach($status_value as $k => $v): ?>
                    <?php
                    if($k == $status){
                        echo form_radio('status', $k, TRUE)." ".$v;

                    } else {
                        echo form_radio('status', $k)." ".$v;
                    }
                    ?>
                <?php endforeach; ?>
            </p>
			 <p>
                <label>Mô tả</label><br />
                <input type="text" name="description" value="<?php echo $description; ?>" class="text big" />
            </p>
            <hr />

            <p>
                <input type="submit" class="submit small" value="Lưu" />
            </p>
        </form>


    </div>		<!-- .block_content ends -->

    <div class="bendl"></div>
    <div class="bendr"></div>
</div>		<!-- .block ends -->